package com.uchonor.api.core.factory;

import com.uchonor.api.core.template.AbstractTemplateEngine;
import com.uchonor.api.core.template.FreemarkerTemplateEngine;

public class TemplateEngineFactory {
    /**
     * 工厂模式
     * @param engineType
     * @return
     */
    public static AbstractTemplateEngine getTemplateEngine(String engineType){
        AbstractTemplateEngine templateEngine = null;
        if("freemarker".equals(engineType)){
            templateEngine = new FreemarkerTemplateEngine();
        }
        return templateEngine;
    }
}
